﻿using DoNet.Common.Helpers;
using SqlSugar;
using System.ComponentModel;

namespace DoNet.Core.Models
{
    /// <summary>
    /// 数据模型接口
    /// </summary>
    public interface IBaseEntity : IEntity
    {
        /// <summary>
        /// 获取 实体唯一标识，主键
        /// </summary>
        long Id { get; set; }
    }

    /// <summary>
    /// 定义领域对象框架实体类的基类，系统默认主键为Id
    /// </summary>
    [Serializable]
    public abstract class BaseEntity : LongEntity, IBaseEntity
    {

    }
}
